#include"ThreadPool.hpp"
#include"Task.hpp"
#include"Log.hpp"
#include <unistd.h>

using namespace log_ns;

int main()
{
    //ThreadPool<Task> *tp = new ThreadPool<Task>();
    ThreadPool<Task> *tp = ThreadPool<Task>::GetInstance();
    LOG(INFO,"Log test:%d\n",1);
    int cnt = 10;
    while(cnt--)
    {
        sleep(1);
        Task t(1,1);
        tp->Equeue(t);
    } 
    tp->Stop();
    sleep(10);
    return 0;
}